<script lang="tsx">
import {Component, Prop, Vue,} from 'vue-property-decorator'
import Grandson from "./Grandson.vue"

@Component
export default class Child extends Vue {

    @Prop({default: "default value"})
    propA!: number // 不要赋值

    @Prop({default: "default value"})
    propB!: string

    @Prop([String, Boolean])
    propC!: string | boolean | undefined


    render() {
        console.log()
        return (
            <div>
                我是Child组件

                <Grandson></Grandson>
            </div>
        )
    }
}
</script>

<style scoped>
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}
</style>
